<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="xupt.se.ttms.model.Studio" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改演出厅信息</title>
<style>
.table th, .table td {
	text-align: center;
	height: 30px;
}
</style>
</head>
<body>
<%@ include file="..//top.jsp" %>
	<div class="row" style="padding: 10px 10px">

		<!-- 左导航栏 -->
		<%@include file="../nav.jsp"%>

		<!-- 更新演出厅信息 -->
		<div class="col-md-10" style="padding-top:10px">
			<form class="form-horizontal" role="form" action="StudioServlet?method=update" method="post">
				<input type="hidden" name="studio_id" value="${studio.studio_id}">
                <div class="form-group">
                    <label  class="col-sm-2 control-label">影厅名称</label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control" id="studio_name" name="studio_name"
                            placeholder="请输入影厅,3-5字" pattern="^[0-9][\u4e00-\u9fa5]{2,4}$"
                            required="required" oninvalid="setCustomValidity('请输入影厅,3-5字!')"
                            oninput="setCustomValidity('')" value="${studio.studio_name }">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">座位行数</label>
                    <div class="col-sm-6">
                        <input type="number" class="form-control" id="studio_row_count" name="studio_row_count"
                            placeholder="请输入座位行数，不超过99" pattern="[0-9]{1,2}" 
                            required="required" oninvalid="setCustomValidity('请输入正确座位行数!')"
                            oninput="setCustomValidity('')" value="${studio.studio_row_count }">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">座位列数</label>
                    <div class="col-sm-6">
                        <input type="number" class="form-control" id="studio_col_count" name="studio_col_count"
                            placeholder="请输入座位列数，不超过99" pattern="[0-9]{1,2}" 
                            required="required" oninvalid="setCustomValidity('请输入正确座位列数!')"
                            oninput="setCustomValidity('')" value="${studio.studio_col_count }">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">影厅描述</label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control" id="studio_introduction" name="studio_introduction" 
                            placeholder="请输入影厅描述" required="required"  
                            oninput="setCustomValidity('')" value="${studio.studio_introduction }">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label">是否生成座位</label>
                    <div class="col-sm-6">
                        <input type="number" class="form-control" id="studio_flag" name="studio_flag"
                            placeholder="1：生成座位，0：不生成座位" pattern="^[01]$" 
                            required="required" oninvalid="setCustomValidity('请输入正确格式!')"
                            oninput="setCustomValidity('')" value="${studio.studio_flag }">
                    </div>
                </div>
				<div class="form-group">
					<div class="col-sm-2 control-label" style="color:red;font-weight: bold;">${result}</div>
					<div class="col-sm-6">
						<!-- <input type="hidden" name="method" value="update"> -->
						<button type="submit" class="btn btn-primary">修  改</button>						
					</div>
				</div>
			</form>

		</div>
	</div>
</body>
</html>